package com.shi.shiro.service;

import com.shi.shiro.domain.Permission;
import com.shi.shiro.domain.Role;
import com.shi.shiro.domain.User;

import java.util.List;

public interface UserService {
    User getUserByUsername(String username);
    List<Role> getRolesByUserId(Long userId);

    List<Permission> getPermissionsByRoleId(Long roleId);

    boolean registerUser(User user);
}
